﻿using StarsAdmin.Application.Api.Dtos;
using StarsAdmin.Core.BaseService;
using StarsAdmin.Core.DI;

namespace StarsAdmin.Application.Api.Services
{
    public interface IApiService : IGetBaseService<ApiDto>, IDependency
    {
        /// <summary>
        ///  编辑
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<bool> UpdateAsync(UpdateApiInput input);

        /// <summary>
        /// 启用
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<bool> EnabledAsync(long id);

        /// <summary>
        /// 同步Api
        /// </summary>
        /// <returns></returns>
        Task<bool> SyncApiAsync();
    }
}